package weaver.batchchanges.util;

//import com.fasterdoc.jackson.databind.ObjectMapper;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.util.Map;


/**
 * 数据转换工具类
 */
public class DataConvertUtil {


    /**
     * 将对象转为Map
     *
     * @return
     */
    public static Map<String, Object> convertToMap(Object object) {
        ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.convertValue(object, Map.class);
    }
}
